package controller
{
	import flash.events.Event;
	import flash.text.TextField;
	
	import subumbo.micro.controller.ApplicationEvent;
	import subumbo.micro.controller.Component;
	import subumbo.micro.model.Model;
	
	public class GameoverScreenViewController extends Component
	{
		public var gameOver:TextField
		public var menu:MenuButtonViewController;
		public var playAgain:MenuButtonViewController;
		
		override protected function bind(e:ApplicationEvent):void
		{
			super.bind(e);
			var data:Array = Model.instance.gameOverMenuItems;
			
			playAgain.data = data[0];
			menu.data = data[1];
			
			this.visible = false;
		}
		
		override public function update(e:ApplicationEvent):void
		{
			/*if(e.data == game_over)
			{
				this.visible = true;		
			}else
			{
				this.visible = false;
			}*/
		}
	}
}